import React from 'react';
import { Provider } from "react-redux";
import { renderRoutes } from "react-router-config";
import store from "./store/index";
import routes from "./routes/index";
import {BrowserRouter} from 'react-router-dom';

function App() {
  return (
    <Provider store={store}>
      <BrowserRouter>
        {renderRoutes(routes)}
      </BrowserRouter>
    </Provider>
  );
}

export default App;
